<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">

<script type="text/javascript" src="../js/checkProductInfo.js">
</script>

<head>
    <meta charset="UTF-8">
    <title>MyPetstore</title>
</head>
<body>
<div th:replace="common/admintop"></div>

<div id="Content">

    <div id="BackLink">
        <a th:href="@{/admin/viewProducts}">Back</a>
    </div>


    <div id="Catalog">
        <form action="/admin/editImage" method="post" enctype="multipart/form-data">
            <h3>Please select a picture.</h3>

            <table class="rwd-table">

                <tr>
                    <td>Product Id:</td>
                    <td>
                    <td><input type="text" style="background-color:transparent;border:0;color:#ffffff;font-size:15px"
                               name="productId" readonly="readonly" th:value="${editProduct.productId}"></td>
                    </td>
                </tr>

                <tr>
                    <td>Image:</td>
                    <td>
                        <input type="file" name="file"/>
                    </td>
                </tr>

            </table>

            <p align="center"><font color="red" name="errormsg"></font></p>

            <input onclick="return checkImg()" type="submit" name="editImage" value="Confirm"/>


        </form>
    </div>
</div>
<div th:replace="common/bottom"></div>
</body>
</html>